package com.mall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HQJ
 * @since 2021-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_category")
public class Category extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品类目表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 类目名
     */
    private String title;
    @TableField(exist = false)
    private  String name;

    public String getName() {
        return title;
    }

    /**
     * 类目图标
     */
    private String iconPath;

    /**
     * 类目图片
     */
    private String photoPath;

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 简介
     */
    private String introduction;

    /**
     * 级别
     */
    private Integer level;

    private Integer pid;

}
